/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.race.entity;

import com.lczyfz.istep.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;


public class RaceCtfSubject extends DataEntity<RaceCtfSubject> {

	private  String id;
	private  String repertoryId;     //题库id
	private String ctfSubjectName;		// ctf题目名称
	private String ctfSubjectAttribute;		// ctf题目属性
	private String label;		// 标签
	private String difficulty;		// 题目难度
	private String stem;		// 题干
	private String ctfEnvironmentId;		// 关联CTF实验环境id
	private String type;		// ctf题目类型id
	private String attachment;		// 附件
	private String score;		// 分值
	private String answer;		// ctf题目答案
	private String tip;		// 基本提示
	private String solution;		// 解题思路
	private String link;		// 解题链接
	private String beginScore;		// 开始 分值
	private String endScore;		// 结束 分值
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间

	public String getIsChoose() {
		return isChoose;
	}

	public void setIsChoose(String isChoose) {
		this.isChoose = isChoose;
	}

	private String isChoose;     // 题目是否被选中
	private String ctfSetId;		// ctf题目集id
	private String ctfEnvironmentName;		// 关联CTF实验环境名称
	private String ctfSubjectTypeName;		// ctf题目类型id



	public  String getId(){return id;}
	public void  setId(String id){
		this.id = id;
	}

	public  String getRepertoryId(){return repertoryId;}
	public void  setRepertoryId(String repertoryId){
		this.repertoryId = repertoryId;
	}


	@Length(min=1, max=64, message="ctf题目名称长度必须介于 1 和 64 之间")
	public String getCtfSubjectName() {
		return ctfSubjectName;
	}

	public void setCtfSubjectName(String ctfSubjectName) {
		this.ctfSubjectName = ctfSubjectName;
	}
	
	@Length(min=1, max=4, message="ctf题目属性长度必须介于 1 和 4 之间")
	public String getCtfSubjectAttribute() {
		return ctfSubjectAttribute;
	}

	public void setCtfSubjectAttribute(String ctfSubjectAttribute) {
		this.ctfSubjectAttribute = ctfSubjectAttribute;
	}
	
	@Length(min=0, max=64, message="标签长度必须介于 0 和 64 之间")
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	@Length(min=1, max=4, message="题目难度长度必须介于 1 和 4 之间")
	public String getDifficulty() {
		return difficulty;
	}

	public void setDifficulty(String difficulty) {
		this.difficulty = difficulty;
	}
	
	public String getStem() {
		return stem;
	}

	public void setStem(String stem) {
		this.stem = stem;
	}
	
	@Length(min=0, max=64, message="关联CTF实验环境id长度必须介于 0 和 64 之间")
	public String getCtfEnvironmentId() {
		return ctfEnvironmentId;
	}

	public void setCtfEnvironmentId(String ctfEnvironmentId) {
		this.ctfEnvironmentId = ctfEnvironmentId;
	}
	
	@Length(min=0, max=64, message="ctf题目类型id长度必须介于 0 和 4 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=128, message="附件长度必须介于 0 和 128 之间")
	public String getAttachment() {
		return attachment;
	}

	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}
	
	@Length(min=0, max=8, message="分值长度必须介于 0 和 8 之间")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Length(min=0, max=255, message="ctf题目答案长度必须介于 0 和 255 之间")
	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	@Length(min=0, max=255, message="基本提示长度必须介于 0 和 255 之间")
	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}
	
	@Length(min=0, max=128, message="解题思路长度必须介于 0 和 128 之间")
	public String getSolution() {
		return solution;
	}

	public void setSolution(String solution) {
		this.solution = solution;
	}
	
	@Length(min=0, max=128, message="解题链接长度必须介于 0 和 128 之间")
	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}
	
	public String getBeginScore() {
		return beginScore;
	}

	public void setBeginScore(String beginScore) {
		this.beginScore = beginScore;
	}
	
	public String getEndScore() {
		return endScore;
	}

	public void setEndScore(String endScore) {
		this.endScore = endScore;
	}
		
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	public String getCtfSetId() {
		return ctfSetId;
	}

	public void setCtfSetId(String ctfSetId) {
		this.ctfSetId = ctfSetId;
	}

	public String getCtfEnvironmentName() {
		return ctfEnvironmentName;
	}

	public void setCtfEnvironmentName(String ctfEnvironmentName) {
		this.ctfEnvironmentName = ctfEnvironmentName;
	}

	public String getCtfSubjectTypeName() {
		return ctfSubjectTypeName;
	}

	public void setCtfSubjectTypeName(String ctfSubjectTypeName) {
		this.ctfSubjectTypeName = ctfSubjectTypeName;
	}
}